package com.wowangz.cms.dailyoperation.chargemanagenew.service;

import java.util.HashMap;
import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.wowangz.cms.dailyoperation.chargemanagenew.pojo.Charge;
import com.wowangz.cms.syscore.exception.ServiceException;
import com.wowangz.cms.syscore.service.BaseService;

public class ChargeCheckService extends BaseService {

	@SuppressWarnings("unused")
	private Logger logger = LoggerFactory.getLogger(ChargeCheckService.class);
	
	/**
	 * 分页查询总条数
	 * 
	 * @param map
	 * @return
	 */
	public long findResultCheckCount(HashMap<String, Object> map) throws ServiceException {
		Long countNum = this.getSqlSession().selectOne("charge.queryChargeCheckCount", map);
		return countNum;
	}

	/**
	 * 查询记录集合
	 * 
	 * @param map
	 * @return
	 */
	public List<Charge> findResultCheckList(HashMap<String, Object> map) throws ServiceException {
		List<Charge> list = this.getSqlSession().selectList("charge.queryChargeCheckPage", map);
		return list;
	}
}
